import request from '@/utils/request'


// 查询班级创建管理列表
export function studentClass(query) {
  return request({
 
    url: '/class/roster/studentClass',
    method: 'get',
    params: query
  })
}

// 查询老师详细
export function getTeacher(subjectName,id,nodes,belongName) {
  return request({
    url: '/class/roster/subjectName/'+subjectName+"/"+id+"/"+nodes+"/"+belongName,
    method: 'get',

  })
}


// 查询课表详细
export function listClassCourse(classId) {
  return request({
    url: '/class/roster/listClassCourse/'+classId,
    method: 'get'
  })
}

// 查询课表详细
export function getSubject() {
  return request({
    url: '/class/roster/list',
    method: 'get'
  })
}

// 新增课程的管理
export function addCourse(data) {
  return request({
    url: '/class/roster',
    method: 'post',
    data: data
  })
}

// 删除课程的管理
export function delCourse(classId) {
  return request({
    url: '/class/roster/' + classId,
    method: 'delete'
  })
}
